<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Teacher {
            // id = 1001
            // name = "小明"
            constructor(id,name) {
                this.id = id;
                this.name = name;
            }

        }

        var tea = new Teacher(1001,"小明")
        console.dir(tea);
    </script>
    
</body>
</html>